<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<!--view视图-->
<div id="app">

    <li v-for="(item,index) in items">
        {{item.message}}--{{index}}
    </li>

    <li v-for="(value,name,index) in objects">
        {{index}}.{{name}}:{{value}}
    </li>

</div>


<!--1.导入vue.js-->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>
    var vm= new Vue({
        el: "#app",
        data: {
            items: [
                {message: '1'},
                {message: '2'}
            ],
            objects: {
                title: "1",
                author: "2",
                publishedAt: "3"
            }
        }
    });
</script>
</body>
</html>